#!/bin/bash


rm -fr problem2_output.txt
rm -fr problem2_performance_output.txt

echo "problem2:"
echo "#cores	time" >>problem2_performance_output.txt

for nodes in `seq 19`
do
	echo " testing with `expr $nodes + 1 ` nodes"
	echo " testing with `expr $nodes + 1 ` nodes" >>problem2_output.txt
	mpirun n0-$nodes -ssi rpi usysv ./ql-round -n3 -d /proj/spear1/cse411/ 2>>problem2_performance_output.txt >problem2_output.txt
done
